<?php
// +----------------------------------------------------------------------
// | hkcms 插件配置
// +----------------------------------------------------------------------
// | Copyright (c) 2012-2019 http://www.hkcms.cn, All rights reserved.
// +----------------------------------------------------------------------
// | Author: 广州恒企教育科技有限公司 <admin@hkcms.cn>
// +----------------------------------------------------------------------
return [
    'base' => [
        'title' => '基础配置',
        'item' => [
            'path' => [
                'title' => '数据库备份路径',
                'type' => 'text',
                'tips' => '路径必须以 / 结尾',
                'rules' => '',
                'error_tips' => '',
                'value' => '/data/',
            ],
            'part' => [
                'title' => '数据库备份卷大小',
                'type' => 'text',
                'tips' => '该值用于限制压缩后的分卷最大长度。单位：B；建议设置20M',
                'rules' => '',
                'error_tips' => '',
                'value' => '20971520',
            ],
            'compress' => [
                'title' => '是否启用压缩',
                'type' => 'radio',
                'tips' => '压缩备份文件需要PHP环境支持gzopen,gzwrite函数',
                'rules' => '',
                'error_tips' => '',
                'options' => [
                    '1' => '启用压缩',
                    '0' => '不启用',
                ],
                'value' => '1',
            ],
            'level' => [
                'title' => '是否启用压缩',
                'type' => 'radio',
                'tips' => '数据库备份文件的压缩级别，该配置在开启压缩时生效',
                'rules' => '',
                'error_tips' => '',
                'options' => [
                    '1' => '普通',
                    '4' => '一般',
                    '9' => '最高',
                ],
                'value' => '9',
            ],
        ],
    ],
];
